package com.yikome.blacklist.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.yikome.common.CommonRepository;
import com.yikome.blacklist.entity.BlackList;

public interface BlackListRepository extends CommonRepository<BlackList, Long>{

	@Query("select t from BlackList t where t.yn = 1 and t.id = :id")
	BlackList findBlackList(@Param("id")Long id);

}
